#include "C_PushButton.h"
using namespace gui;

C_PushButton::C_PushButton()
{
}


C_PushButton::~C_PushButton()
{
}

void C_PushButton::onClickButton(sf::Mouse::Button b_type)
{
	if (b_type == sf::Mouse::Button::Left)
	{
		m_buttonCommand();
	}
}

void C_PushButton::renderWidget()
{
	if (isMouseOver())
	{
		renderOver();
	}
	else
	{
		renderOut();
	}

	if (isMouseButtonPress())
	{
		renderPress();
	}
	if (isMouseButtonClick())
	{
		renderClick();
	}
}

void C_PushButton::renderOver()
{

}

void C_PushButton::renderOut()
{

}

void C_PushButton::renderPress()
{
	
}

void C_PushButton::renderClick()
{

}